import request from '@/utils/request'

// 查询车位信息列表
export function listParkSpace(query) {
  return request({
    url: '/system/parkSpace/list',
    method: 'get',
    params: query
  })
}

// 查询车位信息详细
export function getParkSpace(id) {
  return request({
    url: '/system/parkSpace/' + id,
    method: 'get'
  })
}

// 新增车位信息
export function addParkSpace(data) {
  return request({
    url: '/system/parkSpace',
    method: 'post',
    data: data
  })
}

// 修改车位信息
export function updateParkSpace(data) {
  return request({
    url: '/system/parkSpace',
    method: 'put',
    data: data
  })
}

// 删除车位信息
export function delParkSpace(id) {
  return request({
    url: '/system/parkSpace/' + id,
    method: 'delete'
  })
}

// 导出车位信息
export function exportParkSpace(query) {
  return request({
    url: '/system/parkSpace/export',
    method: 'get',
    params: query
  })
}